/* 捏脸小程序样式 */
.face-container {
  background: #fff;
  min-height: 100vh;
  position: relative;
  padding-bottom: 120rpx; /* 为底部导航栏和自定义tabBar留出空间 */
}

/* 顶部标题栏 */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30rpx 30rpx 20rpx;
  background: #fff;
  box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 10;
}

.platform-name {
  font-size: 36rpx;
  font-weight: bold;
  color: #333;
}

.header-actions {
  display: flex;
  gap: 40rpx;
}

.header-icon {
  width: 44rpx;
  height: 44rpx;
}

/* 轮播图区域 */
.banner-section {
  position: relative;
  margin-top: 10rpx;
}

.banner-timer {
  position: absolute;
  top: 20rpx;
  left: 30rpx;
  background: rgba(255, 255, 255, 0.8);
  padding: 10rpx 20rpx;
  border-radius: 30rpx;
  z-index: 5;
}

.timer-text {
  font-size: 24rpx;
  color: #ff6b81;
  font-weight: bold;
}

.face-banner {
  width: 100%;
  height: 400rpx;
}

.banner-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-img {
  width: 100%;
  height: 100%;
  border-radius: 10rpx;
}

.banner-text {
  position: absolute;
  bottom: 40rpx;
  left: 40rpx;
  color: #fff;
  text-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.3);
}

.banner-title {
  display: block;
  font-size: 40rpx;
  font-weight: bold;
  margin-bottom: 10rpx;
}

.banner-subtitle {
  display: block;
  font-size: 28rpx;
}

/* 欢迎语区域 */
.welcome-section {
  text-align: center;
  padding: 40rpx 0;
}

.welcome-title {
  font-size: 36rpx;
  color: #333;
  font-weight: bold;
  margin-bottom: 20rpx;
}

.welcome-subtitle {
  font-size: 28rpx;
  color: #666;
}

/* 选择玩场区域 */
.playground-section {
  padding: 40rpx 30rpx;
  background: linear-gradient(135deg, #fff5f7 0%, #ffeef1 100%);
  border-radius: 24rpx;
  margin: 30rpx;
  box-shadow: 0 8rpx 24rpx rgba(255, 107, 157, 0.1);
}

.face-type-switcher {
  display: flex;
  justify-content: center;
  margin-bottom: 30rpx;
  gap: 20rpx;
}

.type-btn {
  padding: 12rpx 30rpx;
  background: #ffffff;
  border: 2rpx solid #ff6b9d;
  border-radius: 25rpx;
  color: #ff6b9d;
  font-size: 28rpx;
  font-weight: 500;
  transition: all 0.3s ease;
}

.type-btn.active {
  background: #ff6b9d;
  color: #ffffff;
  box-shadow: 0 4rpx 12rpx rgba(255, 107, 157, 0.3);
}

.type-btn:hover {
  transform: translateY(-2rpx);
  box-shadow: 0 6rpx 16rpx rgba(255, 107, 157, 0.2);
}

.avatar-placeholder {
  background: linear-gradient(135deg, #ffb3c1 0%, #ff9eb5 100%);
  color: #ffffff;
  font-size: 32rpx;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.load-more, .refresh-btn {
  text-align: center;
  margin-top: 30rpx;
}

.load-more-text, .refresh-text {
  display: inline-block;
  padding: 16rpx 40rpx;
  background: #ffffff;
  border: 2rpx solid #ff6b9d;
  border-radius: 30rpx;
  color: #ff6b9d;
  font-size: 28rpx;
  font-weight: 500;
  transition: all 0.3s ease;
}

.load-more-text:hover, .refresh-text:hover {
  background: #ff6b9d;
  color: #ffffff;
  box-shadow: 0 4rpx 12rpx rgba(255, 107, 157, 0.3);
}

.section-title {
  font-size: 32rpx;
  color: #333;
  font-weight: bold;
  margin-bottom: 30rpx;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30rpx;
}

.avatar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20rpx;
  background: #ffffff;
  border-radius: 16rpx;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.avatar-item:hover {
  transform: translateY(-4rpx);
  box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.15);
}

.avatar-item.active {
  border: 3rpx solid #ff6b9d;
  box-shadow: 0 6rpx 20rpx rgba(255, 107, 157, 0.3);
  transform: scale(1.05);
}

.selected-mark {
  position: absolute;
  top: -10rpx;
  right: -10rpx;
  width: 40rpx;
  height: 40rpx;
  background: #ff6b9d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2rpx 8rpx rgba(255, 107, 157, 0.4);
}

.selected-icon {
  color: #ffffff;
  font-size: 24rpx;
  font-weight: bold;
}

.avatar-circle {
  width: 150rpx;
  height: 150rpx;
  border-radius: 50%;
  background: #f8f8f8;
  border: 2rpx solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15rpx;
  overflow: hidden;
}

.avatar-img {
  width: 120rpx;
  height: 120rpx;
}

.avatar-label {
  font-size: 24rpx;
  color: #666;
}

/* 底部导航栏 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100rpx;
  background: #fff;
  box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10rpx;
}

.nav-icon {
  width: 50rpx;
  height: 50rpx;
  margin-bottom: 10rpx;
}

.nav-text {
  font-size: 24rpx;
  color: #999;
}

.nav-item.active .nav-text {
  color: #ff6b81;
}

/* 中间的开始定制按钮 */
.main-btn {
  position: relative;
  margin-top: -40rpx;
}

.main-icon {
  width: 90rpx;
  height: 90rpx;
  margin-bottom: 5rpx;
}

.main-text {
  color: #ff6b81;
  font-weight: bold;
}

/* 响应式设计 */
@media screen and (min-width: 768px) {
  .avatar-grid {
    gap: 40rpx;
  }
  
  .avatar-circle {
    width: 180rpx;
    height: 180rpx;
  }
  
  .avatar-img {
    width: 140rpx;
    height: 140rpx;
  }
}
